<?php $table=Db::mysql_query("SELECT * FROM tbl_page WHERE page_group_id=4 AND page_status=1 AND page_focus=1 ORDER BY page_id DESC LIMIT 8",FETCH_MODE_TABLE);?>

<link rel="stylesheet" type="text/css" href="ext/js/sagscroller/sagscroller.css" />
<style>
#mysagscroller {border:0 none;width: 100%;padding-bottom: 16px !important;height:310px}
#mysagscroller ul {padding-left:7px;padding-right:7px;width:199px}
#mysagscroller ul li{margin-top:3px;margin-bottom:3px}
#mysagscroller ul li a{font-weight: normal}
#mysagscroller ul li a img{display: none}
#mysagscroller .sliderdesc {margin-top:16px}
#mysagscroller .title{background-color:highlight;color:white;padding:3px;margin-bottom:3px;margin-top:-3px}
</style>
<?php if(count($table)>2){?>
<script src="ext/js/sagscroller/sagscroller.js"></script>
<script>
	var sagscroller1=new sagscroller({
		id:'mysagscroller',
		mode: 'auto',
		pause: 2500,
		animatespeed: 400
	})
</script>
<?php }?>

<div class="widget" id='Focus'>
<h2>Lớp tiêu biểu</h2>
<div class="widget-content">
	<div id="mysagscroller" class="sagscroller">
		<ul>
			<?php foreach($table as $key=>$row){
			$page_title=$row['page_title']." - ".date('d/m/y')." - ".($row['page_sent']==1?'đã':'chưa')." giao";?>
			<li class='i-update' <?php echo $key==count($table)-1?" id='last' ":''?> link='page=_update-news&id=<?php echo $row['page_id']?>&group_id=<?php echo $row['page_group_id'];?>' >
				<a href="?page=<?php echo $row['page_name']?>&id=<?php echo $row['page_id']?>&group_id=<?php echo $row['page_group_id'];?>">
					<div class='title'><?php echo $page_title?></div>
					<?php echo $row['page_quote_'.$language]?>
				</a>
			</li>
			<?php }?>
		</ul>
	</div>
</div>
</div>